//es6导出，export default一个文件只能用一次
//export一个文件可用多次，两者可用同一文件中,用的时候必须要定义名字
//export default默认导入导出时候名字可随便
export default {
  path: "/films",
  component: () => import(/* webpackChunkName: "Film" */ "../../views/Film/Film"),

  children: [
    {
      path: "/films/nowplaying",
      component: () => import("../../views/Film/Nowplaying"),
    },
    {
      path: "/films/comingsoon",
      component: () => import("../../views/Film/Comingsoon"),
    },
    {
      path: "/films",
      redirect: "nowplaying",
    },
  ],
};
